<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="myDiv">this is a book</div>
<script>
    setTimeout(function () {
        const div = document.getElementById("myDiv");
        console.log(div)
        console.log(div.style)
        const left = parseInt(div.style.left) + 100;
        div.style.left = left + "px";
        if (left < 200) {
            setTimeout(arguments.callee, 2000);
        }
    }, 50);
</script>
</body>
</html>